// 用户列表
const userList = [
    {
        user_id: "1",
        name: "goku",
        displayName: "孙悟空",
        phone: "13888888881",
        access: ["super_admin"]
        // avator: "https://file.iviewui.com/dist/a0e88e83800f138b94d2414621bd9704.png"
    },
    {
        user_id: "2",
        name: "trunks",
        displayName: "特兰克斯",
        phone: "13888888882",
        access: ["visitor"]
        // avator: "https://avatars0.githubusercontent.com/u/20942571?s=460&v=4"
    }
];

// 角色列表
const roleList = [
    {
        name: "super_admin",
        title: "超级管理员",
        menus: [
            "doc",
            "control",
            "multilevel",
            "level_2_1",
            "level_2_2",
            "level_2_2_1",
            "screen2",
            "level_2_2_2",
            "level_2_3",
            "screen",
            "github",
            "singleMenu",
            "authority",
            "userManage",
            "roleManage",
            "menuManage"
        ],
        id: "1",
        description: "超级管理员，默认拥有全部功能，不可删除"
    },
    {
        name: "visitor",
        title: "访客",
        menus: [
            "control",
            "multilevel",
            "level_2_1",
            "level_2_2",
            "level_2_2_1",
            "level_2_2_2",
            "level_2_3",
            "screen",
            "singleMenu"
        ],
        id: "2",
        description: "访客，拥有部分功能，可删除"
    }
];

/** menuList路由列表
 * isOutSide：是否为外链
 * showLevel：路由层级，详见menuLevel路由层级列表
 * path：前端组件路径（根父组件为Main，非根父组件为parentView，外链任意但不能为空）
 */

// 路由层级
const menuLevel = [
    {
        label: "菜单显示该页面选项，页面不含菜单栏",
        value: "1"
    },
    {
        label: "菜单显示该页面选项，页面含菜单栏",
        value: "2"
    },
    {
        label: "菜单隐藏该页面选项，页面不含菜单栏",
        value: "3"
    }
];
//  id=
//  parentId=root 当showLevel=1的时候是 root; 否则是 上一级的id 英文的；
//  name=id   不能重名
//  title :菜单名称
//  url: 是唯一的  对应前端的链接  前端链接会拼接，显示在地址栏

//  path:就是component 取自php表里面的url 可以重复，只要component存在就可以了
// 
//  php 里面的 url
//  sort 排序
//  ico 图案
//  isOutSide:false
//  showLevel:层级  对应php sort
//  name 不能重复 

// 能够运行数据2024.7.26
// $json = [{
//     "id": "1",
//     "name": "multilevel",
//     "title": "多级菜单",
//     "url": "multilevel",
//     "path": "Main",
//     "sort": 24,
//     "parentId": "root",
//     "ico": "md-menu",
//     "isOutSide": false,
//     "showLevel": "1",
//     "description": ""
// },
// {
//     "id": "2",
//     "name": "multilevel/level_2_1",
//     "title": "二级-1",
//     "url": "level_2_1",
//     "path": "template",
//     "sort": 10,
//     "parentId": "1",
//     "ico": "md-funnel",
//     "isOutSide": false,
//     "showLevel": "2",
//     "description": ""
// },
// {
//     "id": "3",
//     "name": "multilevel/level_2_2",
//     "title": "二级-2",
//     "url": "level_2_2",
//     "path": "parentView",
//     "sort": 8,
//     "parentId": "1",
//     "ico": "md-funnel",
//     "isOutSide": false,
//     "showLevel": "2",
//     "description": "内层模块"
// },
// {
//     "id": "4",
//     "name": "multilevel/level_2_2/level_2_2_1",
//     "title": "三级-1",
//     "url": "level_2_2_1",
//     "path": "multilevel/level-2-2/level-3-1",
//     "sort": 10,
//     "parentId": "3",
//     "ico": "md-funnel",
//     "isOutSide": false,
//     "showLevel": "3",
//     "description": ""
// }

// ];

// 路由列表
const menuList = [
    {
        id: "doc",
        name: "doc",
        title: "文档1111",
        url: "https://simon9124.github.io/iview-dynamicRouter-doc/",
        path: "outSidePath",
        sort: 28,
        parentId: "root",
        ico: "ios-book",
        isOutSide: true,
        showLevel: "1",
        description: "在线文档2222222"
    },
    {
        id: "control",
        name: "control",
        title: "驾驶舱222222",
        url: "control",
        path: "screen",
        sort: 26,
        parentId: "root",
        ico: "md-laptop",
        isOutSide: false,
        showLevel: "1",
        description: "一级大屏"
    },
    {
        id: "multilevel",
        name: "multilevel",
        title: "多级菜单",
        url: "multilevel",
        path: "Main",
        sort: 24,
        parentId: "root",
        ico: "md-menu",
        isOutSide: false,
        showLevel: "2",
        description: ""
    },
    {
        id: "level_2_1",
        name: "level_2_1",
        title: "二级-1",
        url: "level_2_1",
        path: "template",
        sort: 10,
        parentId: "multilevel",
        ico: "md-funnel",
        isOutSide: false,
        showLevel: "2",
        description: ""
    },
    {
        id: "level_2_2",
        name: "level_2_2",
        title: "二级-2",
        url: "level_2_2",
        path: "parentView",
        sort: 8,
        parentId: "multilevel",
        ico: "md-funnel",
        isOutSide: false,
        showLevel: "2",
        description: "内层模块"
    },
    {
        id: "level_2_2_1",
        name: "level_2_2_1",
        title: "三级-1",
        url: "level_2_2_1",
        path: "template",
        sort: 10,
        parentId: "level_2_2",
        ico: "md-funnel",
        isOutSide: false,
        showLevel: "2",
        description: ""
    },
    {
        id: "screen2",
        name: "screen2",
        title: "三级大屏",
        url: "screen2",
        path: "screen",
        sort: 8,
        parentId: "level_2_2",
        ico: "md-laptop",
        isOutSide: false,
        showLevel: "1",
        description: ""
    },
    {
        id: "level_2_2_2",
        name: "level_2_2_2",
        title: "三级-2",
        url: "level_2_2_2",
        path: "template",
        sort: 6,
        parentId: "level_2_2",
        ico: "md-funnel",
        isOutSide: false,
        showLevel: "2",
        description: ""
    },
    {
        id: "level_2_3",
        name: "level_2_3",
        title: "二级-3",
        url: "level_2_3",
        path: "template",
        sort: 6,
        parentId: "multilevel",
        ico: "md-funnel",
        isOutSide: false,
        showLevel: "2",
        description: ""
    },
    {
        id: "screen",
        name: "screen",
        title: "二级大屏",
        url: "screen",
        path: "screen",
        sort: 4,
        parentId: "multilevel",
        ico: "md-laptop",
        isOutSide: false,
        showLevel: "1",
        description: ""
    },
    {
        id: "github",
        name: "github",
        title: "github",
        url: "https://github.com/simon9124/iview-dynamicRouter",
        path: "outSidePath",
        sort: 2,
        parentId: "multilevel",
        ico: "md-log-in",
        isOutSide: true,
        showLevel: "1",
        description: "项目地址"
    },
    {
        id: "singleMenu",
        name: "single/menu",
        title: "单极菜单",
        url: "single/menu",
        path: "template",
        sort: 22,
        parentId: "root",
        ico: "md-document",
        isOutSide: false,
        showLevel: "2",
        description: "单极父子结构"
    },
    {
        id: "authority",
        name: "authority",
        title: "权限管理",
        url: "authority",
        path: "Main",
        sort: 20,
        parentId: "root",
        ico: "md-settings",
        isOutSide: false,
        showLevel: "2",
        description: "管理员专属"
    },
    {
        id: "userManage",
        name: "userManage",
        title: "用户管理",
        url: "userManage",
        path: "authority/user",
        sort: 10,
        parentId: "authority",
        ico: "ios-navigate",
        isOutSide: false,
        showLevel: "2",
        description: ""
    },
    {
        id: "roleManage",
        name: "roleManage",
        title: "角色管理",
        url: "roleManage",
        path: "authority/role",
        sort: 8,
        parentId: "authority",
        ico: "ios-navigate",
        isOutSide: false,
        showLevel: "2",
        description: ""
    },
    {
        id: "menuManage",
        name: "menuManage",
        title: "菜单管理",
        url: "menuManage",
        path: "authority/menu",
        sort: 6,
        parentId: "authority",
        ico: "ios-navigate",
        isOutSide: false,
        showLevel: "2",
        description: ""
    }
];


var menuList2 = [
    {
        "path": "/control",
        "name": "control",
        "component": "screen",
        "meta": {
            "icon": "md-laptop",
            "title": "驾驶舱222222",
            "hideInBread": true,
            "hideInMenu": false,
            "id": "control"
        },
        "sort": 26,
        "children": [

        ]
    },
    {
        "path": "/multilevel",
        "name": "multilevel",
        "component": "Main",
        "meta": {
            "icon": "md-menu",
            "title": "多级菜单",
            "hideInBread": true,
            "id": "multilevel"
        },
        "sort": 24,
        "children": [
            {
                "path": "level_2_1",
                "name": "level_2_1",
                "component": "template",
                "meta": {
                    "icon": "md-funnel",
                    "title": "二级-1",
                    "id": "level_2_1"
                },
                "sort": 10,
                "children": [

                ]
            },
            {
                "path": "/level_2_2",
                "name": "level_2_2",
                "component": "parentView",
                "meta": {
                    "icon": "md-funnel",
                    "title": "二级-2",
                    "hideInBread": true,
                    "id": "level_2_2"
                },
                "sort": 8,
                "children": [
                    {
                        "path": "level_2_2_1",
                        "name": "level_2_2_1",
                        "component": "template",
                        "meta": {
                            "icon": "md-funnel",
                            "title": "三级-1",
                            "id": "level_2_2_1"
                        },
                        "sort": 10,
                        "children": [

                        ]
                    },
                    {
                        "path": "level_2_2_2",
                        "name": "level_2_2_2",
                        "component": "template",
                        "meta": {
                            "icon": "md-funnel",
                            "title": "三级-2",
                            "id": "level_2_2_2"
                        },
                        "sort": 6,
                        "children": [

                        ]
                    }
                ],
                "redirect": "/level_2_2/level_2_2_1"
            },
            {
                "path": "level_2_3",
                "name": "level_2_3",
                "component": "template",
                "meta": {
                    "icon": "md-funnel",
                    "title": "二级-3",
                    "id": "level_2_3"
                },
                "sort": 6,
                "children": [

                ]
            },

            {
                "path": "/screen",
                "name": "screen",
                "component": "screen",
                "meta": {
                    "icon": "md-laptop",
                    "title": "二级大屏",
                    "hideInBread": true,
                    "hideInMenu": false,
                    "notInMenu": true,
                    "id": "screen"
                },
                "sort": 4,
                "children": [

                ]
            }
        ],
        "redirect": "/multilevel/level_2_1"
    },
    {
        "path": "/single",
        "name": "single",
        "component": "Main",
        "meta": {
            "icon": "md-document",
            "title": "单极菜单",
            "hideInBread": true,
            "id": "singleMenu"
        },
        "sort": 22,
        "children": [
            {
                "path": "menu",
                "name": "menu",
                "meta": {
                    "icon": "md-document",
                    "title": "单极菜单",
                    "id": "_singleMenu"
                },
                "component": "template",
                "children": [

                ]
            }
        ],
        "redirect": "/single/menu"
    }
];



export { userList, roleList, menuList, menuLevel, menuList2 };
